#define _CRT_SECURE_NO_WARNINGS

#include"RBTree.h"
#include"vector"

void testInert()
{
	const int N = 10000;
	RBTree<int, int> t;
	vector<int> v;
	srand((unsigned int)time(nullptr));
	for (int i = 0; i < N; i++)
	{
		v.push_back(rand() + i);
	}
	for (auto e : v)
	{
		t.insert({ e,e });
	}
	cout << t.IsBalance() << endl;
}
void testCopy()
{
	RBTree<int, int> t1;
	t1.insert({ 1,1 });
	t1.insert({ 2,2 });
	t1.insert({ 3,3 });
	t1.insert({ 4,4 });
	RBTree<int, int> t2;
	//t1.InOrder();
	t2=t1;
	t2.InOrder();
}

int main()
{
	//testInert();
	testCopy();

	return 0;
}